﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class
{
    class Dog : Public,ICtree,ISwim
    {
        public Dog(string name,string ask) : base(name,ask)
        {
            base.Ask = ask;
            base.Name = name;
        }
        public void swim()
        {
            Console.WriteLine("{0}我会游泳~",base.Name);
        }
        public void tree()
        {
            Console.WriteLine("{0}我会爬树~",base.Name);
        }

    }
}
